package com.zxhhyj.storm.dsl

import com.zxhhyj.storm.schema.Table

class SequenceBuilder<T, E : Table<T>> {
//    fun asKotlinSequence() = Sequence { iterator() }
//
//    operator fun iterator() = object : Iterator<E> {
//        private val queryIterator = query.iterator()
//
//        override fun hasNext(): Boolean {
//            return queryIterator.hasNext()
//        }
//
//        override fun next(): E {
//            return entityExtractor(queryIterator.next())
//        }
//    }
}